package switchdemo;

import java.util.Scanner;

public class Demo11 {

	public static void main(String[] args) {
		int y,m,d,days,sum;
		
		Scanner in =new Scanner(System.in);
		System.out.println("请输入年月日：");
		y=in.nextInt();
		m=in.nextInt();
		d=in.nextInt();
		days=(y-1900)*365;
		int i=1900;
		while(y>i){
			if(i%4==0&&i%100!=0||i%400==0)
				days++;
			i++;
		}
		sum=days;
		i=1;
		while(i<m){
			switch(i){
			case 2:
				days+=28;
				if(y%4==0&&y%100!=0||y%400==0)
					days++;
				break;
			case 4:case 6:case 9:case 11:
				days+=30;
				break;
				default:days+=31;
			}
			i++;
		}
	
		days+=d;
		String[] w={"日","一","二","三","四","五","六"};
		System.out.println("这天星期"+w[days%7]);
		System.out.println(days);
		System.out.println(sum);
	}

}
